﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Cart.aspx.cs" Inherits="Cart" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Contents" Runat="Server">
    <h4>User-->Cart</h4>
    <div class="art-content-layout-wrapper layout-item-0">
        <div class="art-content-layout layout-item-1" style="text-align:center;" id="cartStep1" runat="server">
            <h3>Your Cart-->Step 1:Customize your cart</h3>
            <br />
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false" AllowPaging="True" PageSize="2" AllowSorting="True"
                DataKeyNames="ImageID,ImgSize,ImgQuantity" OnPageIndexChanging="GridView1_PageIndexChanging" OnRowCommand="GridView1_RowCommand">
                <Columns>
                    <asp:TemplateField HeaderText="Album">
                        <ItemTemplate>
                            <asp:Label ID="lblAlbumName" runat="server" Text='<%# Eval("AlbumName") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Picture">
                        <ItemTemplate>
                            <asp:Label ID="lblImgName" runat="server" Text='<%# Eval("ImgName") %>'></asp:Label>
                            <br />
                            <img src="<%#Eval("ImgPath") %>" style="width:400px;"/>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Img-Size">
                        <ItemTemplate>
                            <asp:Label ID="lblImgSize" runat="server" Text='<%# Eval("ImgSize") %>'></asp:Label>
                        </ItemTemplate>                        
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Unit-Price">
                        <ItemTemplate>
                            <asp:Label ID="lblUnitPrice" runat="server" Text='<%# Eval("UnitPrice")+"$" %>'></asp:Label>
                        </ItemTemplate>                        
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Quantity">
                        <ItemTemplate>
                            <asp:TextBox ID="txtQuantity" runat="server" Text='<%# Eval("ImgQuantity") %>'></asp:TextBox>
                        </ItemTemplate>                        
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Total-Price">
                        <ItemTemplate>
                            <asp:Label ID="lblTotalPrice" runat="server" Text='<%#getTotalPriceByID(Eval("ImageID").ToString()) +"$"%>'></asp:Label>
                        </ItemTemplate>                        
                    </asp:TemplateField>                  
                    <asp:TemplateField HeaderText="Command">
                        <ItemTemplate>
                            <asp:LinkButton ID="btnupdate" runat="server" ForeColor="White" OnClick="btnupdate_Click" CommandName="update">update</asp:LinkButton>&nbsp;|&nbsp;<asp:LinkButton ID="btnremove" runat="server" ForeColor="White" OnClick="btnremove_Click" CommandName="remove">remove</asp:LinkButton>                                                        
                        </ItemTemplate>                        
                    </asp:TemplateField>
                </Columns>
                <EmptyDataTemplate>
                    There is'nt any item in cart please add more...
                </EmptyDataTemplate>
            </asp:GridView>
            <br />
            <asp:Button ID="btnNext1" runat="server" Text="Next Step" OnClick="btnNext1_Click"/>
        </div>
        <div class="art-content-layout layout-item-1" style="text-align:center;" id="cartStep2" runat="server">
            <h3>Your Cart-->Step 2:Payment &amp; Deliver</h3>
            <br />
            <asp:Label ID="lblTotalCost" runat="server" Text="Total cost: 4000$"></asp:Label>
            <br />
            <br />
            <asp:Label ID="lblPaymentInfo" runat="server" Text="Use this method you'll must payment 50% value of order and complete payment after the post officer give you products!"></asp:Label>
            <br />
            <br />
            <asp:RadioButton ID="RadioButton1" runat="server" Text="Visa card" GroupName="rdopayment"/>
            <asp:RadioButton ID="RadioButton2" runat="server" Text="Master card" GroupName="rdopayment"/>
            <asp:RadioButton ID="RadioButton3" runat="server" Text="ATM" GroupName="rdopayment"/>
            <asp:RadioButton ID="RadioButton4" runat="server" Text="Through post office" GroupName="rdopayment"/>            
            <br />
            <br />
            <br />
            <asp:Button ID="btnNext2" runat="server" Text="Next Step" OnClick="btnNext2_Click"/>
        </div>
        <div class="art-content-layout layout-item-1" style="text-align:center;" id="cartStep3" runat="server">
            <h3>Your Cart-->Step 3:Confirm order</h3>
            <br />
            <asp:Label ID="Label1" runat="server" Text="1.Thanks for your order,we'll happiness to service you!"></asp:Label>
            <br />
            <asp:Label ID="lblInfoStep2" runat="server" Text="2.Please confirm with us your address,where you'll received products when we do complete..."></asp:Label>
            <br />
            <br />
            <asp:RadioButton ID="RadioButton5" runat="server" Text="Old Address(which registered with us)" GroupName="rdoconfirm"/>
            <asp:RadioButton ID="RadioButton6" runat="server" Text="New Address(you'll type below now)" GroupName="rdoconfirm"/>         
            <br />
            <br />
            <br />
            <asp:Button ID="btnStep3" runat="server" Text="Order" OnClick="btnStep3_Click"/>
        </div>
        <div class="art-content-layout layout-item-1" style="text-align:center;" id="cartComplete" runat="server">
            <br />
            <asp:Label ID="lblInfoComplete" runat="server" Text="Your order was successful send to us,if there's any change our employee will contact with you!"></asp:Label>
            <br />        
            <br />
            <asp:Button ID="btnBackAlbum" runat="server" Text="Back to album" OnClick="btnBackAlbum_Click"/>
        </div>
    </div>
</asp:Content>

